# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer:
pkgname=libxaw3d
pkgver=1.6.5
pkgrel=2
pkgdesc="3D appearance variant of the X Athena Widget Set"
url="https://gitlab.freedesktop.org/xorg/lib/libxaw3d"
arch="all"
license="MIT"
options="!check" # no test suite
makedepends="libxmu-dev util-macros"
source="https://xorg.freedesktop.org/archive/individual/lib/libXaw3d-$pkgver.tar.gz"
subpackages="$pkgname-dev $pkgname-doc"
builddir="$srcdir/libXaw3d-$pkgver"

build() {
	./configure \
		--target="$CTARGET" \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 COPYING -t "$pkgdir"/usr/share/licenses/"$pkgname"
}

sha512sums="
a3d46c6271ac01ee18d3a18c3f5bbb62638b3d50e4db05d716af0dae23d8e4ba4746d76dcaaca966cd9238dc008b2343d9bd3c4f5f1f49d915f4a4f75caaec60  libXaw3d-1.6.5.tar.gz
"
